<div class="comment_form">
<p class="title_type">Editing comment</p>
<%= form_remote_tag(:update => "comment_#{@comment.id}",:after => "insertWaitingImg('comment_#{@comment.id}')", :url => {:controller => 'comments', :action => 'update', :id => @comment} ) %>
  <%= render :partial => 'form' %>
  <%= submit_tag "Save" %>
  <%= button_to_function 'Cancel', remote_function( :update => "comment_#{@comment.id}",:after => "insertWaitingImg('comment_#{@comment.id}')", :url => {:controller => 'comments', :action => 'show', :id => @comment}) %>
<%= end_form_tag %>
</div>
